package com.tiamo.chatgpt.domain.chatKey;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;
import java.util.Date;

/**
 * @author luozhiwei
 * @date 2023/6/6 上午12:01
 */
@Data
@ApiModel("chatKey业务对象")
public class ChatKeyDto implements Serializable {

    private Long id;

    @ApiModelProperty()
    @NotBlank(message = "api-key不能为空")
    private String apiKey;

    @ApiModelProperty("描述")
    private String description;

    @ApiModelProperty("状态0可用1不可用2过期")
    private Integer status;

    @ApiModelProperty("创建时间")
    private Date crTime;

    @ApiModelProperty("更新时间")
    private Date upTime;
}
